package cn.zwx.activiti.example;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @description 排除掉 SecurityAutoConfiguration
 **/
//@SpringBootApplication(  exclude = {
//        org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
//        org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration.class
//})
@SpringBootApplication()
@MapperScan(basePackages = {"cn.zwx.activiti.example.mapper"})
@EnableTransactionManagement
public class ActivitiExampleApplication {

    private static final Logger logger = LoggerFactory.getLogger(ActivitiExampleApplication.class);


    public static void main(String[] args) {

        SpringApplication.run(ActivitiExampleApplication.class, args);

        logger.info("ActivitiExampleApplication 启动成功");
    }



}
